<?php
defined('SEJUJOPEFDNGJSL') or exit('Access denied');

if($_POST['act']=='add'){
	$jjtjj='';
	$jjtjj2 = '';
	$jjtjj3 = '';
	$jjtjj4 = '';
	$jjxjk = '';
	$jjsjt =  '';
	$jjqkok = $_POST['jjqkok'];
	$cqmin = $_POST['cqmin'];
	$cqmax = $_POST['cqmax'];
	$qkbs = $_POST['qkbs'];
	$cqbs = $_POST['cqbs'];
	$outbs = $_POST['outbs'];
	$jjqc = $_POST['jjqc'];
	$qudelay = $_POST['qudelay'];
	$sytitle = $_POST['sytitle'];
	$sybottom = $_POST['sybottom'];
	$jjcunpei = $_POST['jjcunpei'];
	$jjqupei = $_POST['jjqupei'];
	$jjlxt = $_POST['jjlxt'];
	$ldprizebs = $_POST['ldprizebs'];
	$ldprizemin = $_POST['ldprizemin'];
	$jjtx = $_POST['jjtx'];
	// $allowtxall = $_POST['allowtxall'];
	$perdays = $_POST['perdays'];
	$zhelecoinbl = $_POST['zhelecoinbl'];
	$duib_jt = $_POST['duib_jt'];
	$duifx_jt = $_POST['duifx_jt'];
	$duifz_jt = $_POST['duifz_jt'];
	$duib_dt = $_POST['duib_dt'];
	$duifx_dt = $_POST['duifx_dt'];
	$duifz_dt = $_POST['duifz_dt'];
	$hyjs = $_POST['hyjs'];
	$zjcjs = $_POST['zjcjs'];
	$freezedhour = $_POST['freezedhour'];
	$freeze_not_give = $_POST['freeze_not_give'];
	$jjfhz = $_POST['jjfhz'];
	$qdjbl = $_POST['qdjbl'];
	$cy_amount = $_POST['cy_amount'];

	if(!strstr(trim($_POST['timestart']),"/") || !strstr(trim($_POST['timeend']),"/")){
		echo "时间格式不正确！";
		exit;
	}else {
	    $msarr = explode("/",trim($_POST['timestart']));
	    $mearr = explode("/",trim($_POST['timeend']));
	    if($msarr[0] == '' || $msarr[1] == ''|| $msarr[2] == '' || $mearr[0] == '' || $mearr[1] == '' ||$mearr[2] == ''){
	        echo "时间格式错误！";
	        exit;
	    }
	}
	if(strtotime(trim($_POST['timestart']))>strtotime(trim($_POST['timeend']))){
		echo "开始时间不能大于结束时间！";
		exit;
	}

    $teamreward = $_POST['teamreward'];

	$timestart = trim($_POST['timestart']);
	$timeend = trim($_POST['timeend']);
	$presentcoin = $_POST['presentcoin'];
	$duihuanlimit = $_POST['duihuanlimit'];
	$glyti = $_POST['glyti'];

	$morningstart = $_POST['morningstart'];
	$morningend = $_POST['morningend'];
	$noonstart = $_POST['noonstart'];
	$noonend = $_POST['noonend'];

	if(!strstr($morningstart,":") || !strstr($morningend,":") || !strstr($noonstart,":") || !strstr($noonend,":")){
		echo "时间格式不正确！";
		exit;
	}else{
		$msarr = explode(":",$morningstart);
		$mearr = explode(":",$morningend);
		$nsarr = explode(":",$noonstart);
		$nearr = explode(":",$noonend);
		if($msarr[0] == '' || $msarr[1] == '' || $mearr[0] == '' || $mearr[1] == '' || $nsarr[0] == '' || $nsarr[1] == '' || $nearr[0] == '' || $nearr[1] == ''){
			echo "时间格式错误！";
			exit;
		}else{
			if(intval($mearr[0])<intval($msarr[0]) || intval($nearr[0])<intval($nsarr[0])){
				echo "开始小时不能大于结束小时！";
				exit;
			}else{
				if(intval($mearr[0])==intval($msarr[0])){
					if(intval($mearr[1])<=intval($msarr[1])){
						echo "开始时间不能大于等于结束时间！";
						exit;
					}
				}
				if(intval($nearr[0])==intval($nsarr[0])){
					if(intval($nearr[1])<=intval($nsarr[1])){
						echo "开始时间不能大于等于结束时间！";
						exit;
					}
				}
			}
			if(intval($nsarr[0])<intval($mearr[0])){
				echo "第二时间段的开始小时不能小于第一时间段的结束小时";
				exit;
			}else{
				if(intval($nsarr[0])==intval($mearr[0])){
					if(intval($nsarr[1])<=intval($mearr[1])){
						echo "第二时间段的开始时间必须大于第一时间段的结束时间！";
						exit;
					}
				}
			}
		}
	}

	$qkmin = $_POST['qkmin'];
	$qkmax = $_POST['qkmax'];
	$txkbj = $_POST['txkbj'];  //提现本金扣除比例饿
	$txminlx = $_POST['txminlx'];
	$txmindjx = $_POST['txmindjx'];
	$txkql = $_POST['txkql'];  //动态奖金扣除比例
	$tran_num = $_POST['tran_num'];
	$syadminpwd = $_POST['syadminpwd'];
	$syopen = $_POST['syopen'];
	$autoorno = $_POST['autoorno'];
	$open_dinggou = $_POST['open_dinggou'];
	$freeze = $_POST['freeze']?$_POST['freeze']:0; //存储时间、锁仓时间
	$free = $_POST['free']?$_POST['free']:0; //释放比例
	$limitmax = $_POST['limitmax']?$_POST['limitmax']:0; //团队日收益，推荐人最大收益数
    $recnum = $_POST['recnum']?$_POST['recnum']:0; //团队日收益，推挤人锁仓数
    $ltc_price = $_POST['ltc_price']?$_POST['ltc_price']:0; //莱特币价格
    $btc_price = $_POST['btc_price']?$_POST['btc_price']:0; //比特币价格
    $zhuanhuan_rate = $_POST['zhuanhuan_rate']?$_POST['zhuanhuan_rate']:0; //转换的手续费


	for($i=1;$i<=4;$i++){
		if($i < 4){
			$jjtjj .= $_POST['tjj'.$i].'|';
			$jjtjj2 .= $_POST['tjj'.$i].'|';
			$jjtjj3 .= $_POST['tjj'.$i].'|';
			$jjtjj4 .= $_POST['tjj'.$i].'|';
		}else{
			$jjtjj .= $_POST['tjj'.$i];
			$jjtjj2 .= $_POST['tjj'.$i];
			$jjtjj3 .= $_POST['tjj'.$i];
			$jjtjj4 .= $_POST['tjj'.$i];
		}
	}

	for($i=1;$i<=2;$i++){
		if($i!=2){
			$jjxjk .= $_POST['jjxjk'.$i].'|';
			$jjsjt .= $_POST['jjsjt'.$i].'|';
		}else{
			$jjxjk .= $_POST['jjxjk'.$i];
			$jjsjt .= $_POST['jjsjt'.$i];
		}
	}
	for($i=1;$i<=3;$i++){
		if($i!=3){
			$jjzt .= $_POST['jjzt'.$i].'|';
			$jjtd .= $_POST['jjtd'.$i].'|';
			$jjnum .= $_POST['jjnum'.$i].'|';
			$jjjl .= $_POST['jjjl'.$i].'|';

		}else{
			$jjzt .= $_POST['jjzt'.$i];
			$jjjl .= $_POST['jjjl'.$i];
			$jjnum .= $_POST['jjnum'.$i];
			$jjtd .= $_POST['jjtd'.$i];
		}
	}
//	for($i=1;$i<=5;$i++){
//		if($i!=5){
//			$allowtxall .= $_POST['allowtxall'.$i].'|';
//
//
//		}else{
//			$allowtxall .= $_POST['allowtxall'.$i];
//
//		}
//	}

	$sql = 'update ld_settings set setting_value = CASE setting_enname
	WHEN \'jjtjj\' THEN \''.$jjtjj.'\'
	WHEN \'jjxjk\' THEN \''.$jjxjk.'\'
	WHEN \'jjsjt\' THEN \''.$jjsjt.'\'
	WHEN \'jjzt\' THEN \''.$jjzt.'\'
	WHEN \'jjtd\' THEN \''.$jjtd.'\'
	WHEN \'jjnum\' THEN \''.$jjnum.'\'
	WHEN \'jjjl\' THEN \''.$jjjl.'\'
	WHEN \'jjqkok\' THEN \''.$jjqkok.'\'
	WHEN \'cqmin\' THEN \''.$cqmin.'\'
	WHEN \'cqmax\' THEN \''.$cqmax.'\'
	WHEN \'qkbs\' THEN \''.$qkbs.'\'
	WHEN \'cqbs\' THEN \''.$cqbs.'\'
	WHEN \'outbs\' THEN \''.$outbs.'\'
	WHEN \'jjqc\' THEN \''.$jjqc.'\'
	WHEN \'glyti\' THEN \''.$glyti.'\'
	WHEN \'qudelay\' THEN \''.$qudelay.'\'
	WHEN \'sytitle\' THEN \''.$sytitle.'\'
	WHEN \'sybottom\' THEN \''.$sybottom.'\'
	WHEN \'jjcunpei\' THEN \''.$jjcunpei.'\'
	WHEN \'jjqupei\' THEN \''.$jjqupei.'\'
	WHEN \'jjlxt\' THEN \''.$jjlxt.'\'
	WHEN \'ldprizebs\' THEN \''.$ldprizebs.'\'
	WHEN \'ldprizemin\' THEN \''.$ldprizemin.'\'
	WHEN \'jjtx\' THEN \''.$jjtx.'\'
	WHEN \'perdays\' THEN \''.$perdays.'\'
	WHEN \'zhelecoinbl\' THEN \''.$zhelecoinbl.'\'
	WHEN \'duib_jt\' THEN \''.$duib_jt.'\'
	WHEN \'duifx_jt\' THEN \''.$duifx_jt.'\'
	WHEN \'duifz_jt\' THEN \''.$duifz_jt.'\'
	WHEN \'duib_dt\' THEN \''.$duib_dt.'\'
	WHEN \'duifx_dt\' THEN \''.$duifx_dt.'\'
	WHEN \'duifz_dt\' THEN \''.$duifz_dt.'\'
	WHEN \'hyjs\' THEN \''.$hyjs.'\'
	WHEN \'zjcjs\' THEN \''.$zjcjs.'\'
	WHEN \'freezedhour\' THEN \''.$freezedhour.'\'
	WHEN \'freeze_not_give\' THEN \''.$freeze_not_give.'\'
	WHEN \'jjfhz\' THEN \''.$jjfhz.'\'
	WHEN \'qdjbl\' THEN \''.$qdjbl.'\'
	WHEN \'cy_amount\' THEN \''.$cy_amount.'\'
	WHEN \'timestart\' THEN \''.$timestart.'\'
	WHEN \'timeend\' THEN \''.$timeend.'\'
	WHEN \'presentcoin\' THEN \''.$presentcoin.'\'
	WHEN \'duihuanlimit\' THEN \''.$duihuanlimit.'\'

	WHEN \'morningstart\' THEN \''.$morningstart.'\'
	WHEN \'morningend\' THEN \''.$morningend.'\'
	WHEN \'noonstart\' THEN \''.$noonstart.'\'
	WHEN \'noonend\' THEN \''.$noonend.'\'

	WHEN \'qkmin\' THEN \''.$qkmin.'\'
	WHEN \'qkmax\' THEN \''.$qkmax.'\'
	WHEN \'txkbj\' THEN \''.$txkbj.'\'
	WHEN \'txminlx\' THEN \''.$txminlx.'\'
	WHEN \'txmindjx\' THEN \''.$txmindjx.'\'
	WHEN \'txkql\' THEN \''.$txkql.'\'
	WHEN \'tran_num\' THEN \''.$tran_num.'\'
	WHEN \'syadminpwd\' THEN \''.$syadminpwd.'\'
	WHEN \'syopen\' THEN \''.$syopen.'\'
	WHEN \'autoorno\' THEN \''.$autoorno.'\'
	WHEN \'open_dinggou\' THEN \''.$open_dinggou.'\'
	WHEN \'freeze\' THEN \''.$freeze.'\'
	WHEN \'free\' THEN \''.$free.'\'
	WHEN \'limitmax\' THEN \''.$limitmax.'\'
	WHEN \'recnum\' THEN \''.$recnum.'\'
	WHEN \'ltc_price\' THEN \''.$ltc_price.'\'
	WHEN \'btc_price\' THEN \''.$btc_price.'\'
	WHEN \'zhuanhuan_rate\' THEN \''.$zhuanhuan_rate.'\'
	END
	where setting_enname in (\'recnum\',\'limitmax\',\'freeze\',\'free\',\'jjtjj\',\'jjxjk\',\'jjsjt\',\'jjzt\',\'jjtd\',\'jjnum\',\'jjjl\',\'jjqkok\',\'cqmin\',\'cqmax\',\'qkbs\',\'cqbs\',\'outbs\',\'jjqc\',\'glyti\',\'qudelay\',\'sytitle\',\'sybottom\',\'jjcunpei\',\'jjqupei\',\'jjlxt\',\'ldprizebs\',\'ldprizemin\',\'jjtx\',\'allowtxall\',\'perdays\',\'zhelecoinbl\',\'duib_jt\',\'duifx_jt\',\'duifz_jt\',\'duib_dt\',\'duifx_dt\',\'duifz_dt\',\'hyjs\',\'zjcjs\',\'freezedhour\',\'freeze_not_give\',\'duihuanlimit\',\'jjfhz\',\'qdjbl\',\'cy_amount\',\'timestart\',\'timeend\',\'presentcoin\',\'morningstart\',\'morningend\',\'noonstart\',\'noonend\',\'qkmin\',\'qkmax\',\'txkbj\',\'txminlx\',\'txmindjx\',\'txkql\',\'tran_num\',\'syadminpwd\',\'syopen\',\'autoorno\',\'open_dinggou\',\'ltc_price\',\'btc_price\',\'zhuanhuan_rate\')';
	$db->sitedbexec($sql);
	$sql_ltc = "insert into ld_ltc_price values(0,".$ltc_price.",".time().")";
	$db->sitedbexec($sql_ltc);
	$sql_btc = "insert into ld_btc_price values(0,".$btc_price.",".time().")";
	$db->sitedbexec($sql_btc);
	$sql_rate = "insert into ld_rate values(0,".(1 - $zhuanhuan_rate/100).",".time().")";
	$db->sitedbexec($sql_rate);
	record_log('修改系统参数'.$uname);
	show_automsg('修改系统参数成功！',YMCURL.'configset');
}



echo '<h3>系统参数设置</h3>';
echo '<script language="javascript" type="text/javascript" src="../my97datepicker/WdatePicker.js"></script>';
echo '<div class="main-r-body"><form method="post" action="'.geturl().'">
		<div class="main-r-item">
		<input type="submit" class="thabtn" value="保存"></div>
		<input type="hidden" name="act" value="add">';
echo '<table class="tregtab ttab">';

echo '	<tr>
			<td class="wdb20 alignr paddingr">会员动态奖</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjtjj'] as $key=>$val){
		    if($key == 3){
		        $keystr = "4代—30代：该收益的";
            }else{
                $keystr = ($key+1).'代：该收益的';
            }
			echo $keystr.'<input type="text" name="tjj'.($key+1).'" value="'.$val.'" class="thconfig wd40">%，';
		}

echo		'</td>
		</tr>';
if($GLOBALARR['autoorno'] == 0){
	$autoopen = "checked='checked'";
	$autoclose = '';
}else{
	$autoopen = '';
	$autoclose = "checked='checked'";
}

echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">开启关闭排单</td>
		<td class="alignl paddingl">
			<input type="radio" name="autoorno" value="0" '.$autoopen.' />开启&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="radio" name="autoorno" value="1" '.$autoclose.' onclick="alert('."'请注意：您选择了关闭排单！'".')" />关闭
		</td>
	  </tr>';
if($GLOBALARR['open_dinggou'] == 0){
	$open_dinggou = "checked='checked'";
	$close_dinggou = '';
}else{
	$open_dinggou = '';
	$close_dinggou = "checked='checked'";
}
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">开启购买功能</td>
		<td class="alignl paddingl">
			<input type="radio" name="open_dinggou" value="0" '.$open_dinggou.' />开启&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="radio" name="open_dinggou" value="1" '.$close_dinggou.' onclick="alert('."'请注意：您选择了关闭购买产品的功能！'".')" />关闭
		</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">领导奖提现倍数</td>
		<td class="alignl paddingl"><input type="text" name="ldprizebs" value="'.$GLOBALARR['ldprizebs'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">领导奖提现最小金额</td>
		<td class="alignl paddingl"><input type="text" name="ldprizemin" value="'.$GLOBALARR['ldprizemin'].'" class="thconfig wd120"></td>
	  </tr>';
echo '	<tr style="display:none">
			<td class="wdb20 alignr paddingr">升级(领导人一代、二代)所需直推数</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjsjt'] as $key=>$val){
			echo '<input type="text" name="jjsjt'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
		}

echo		'</td>
		</tr>';
echo '	<tr style="display:none">
			<td class="wdb20 alignr paddingr">升级所需团队数</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjxjk'] as $key=>$val){
			echo '<input type="text" name="jjxjk'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
		}

echo		'</td>
		</tr>';
echo '	<tr style="display:none">
			<td class="wdb20 alignr paddingr">晋级(创业、联席、首席)直推数</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjzt'] as $key=>$val){
			echo '<input type="text" name="jjzt'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
		}

echo		'</td>
		</tr>';
echo '	<tr style="display:none">
			<td class="wdb20 alignr paddingr">晋级(创业、联席、首席)销售业绩</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjtd'] as $key=>$val){
			echo '<input type="text" name="jjtd'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
		}

echo		'</td>
		</tr>';
echo '	<tr style="display:none">
			<td class="wdb20 alignr paddingr">晋级需要(30万,创业、联席)需要个数</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjnum'] as $key=>$val){
			echo '<input type="text" name="jjnum'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
		}

echo		'</td>
		</tr>';
echo '	<tr style="display:none">
			<td class="wdb20 alignr paddingr">晋级(创业、联席、首席)奖励</td>
			<td class="alignl paddingl">';
		foreach($GLOBALARR['jjjl'] as $key=>$val){
			echo '<input type="text" name="jjjl'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
		}

echo		'%</td>
		</tr>';
echo '<tr style="display:none;">
		<td class="wdb20 alignr paddingr">升级创业金额</td>
		<td class="alignl paddingl"><input type="text" name="cy_amount" value="'.$GLOBALARR['cy_amount'].'" class="thconfig wd120">元</td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">注册赠送币数量</td>
		<td class="alignl paddingl"><input type="text" name="presentcoin" value="'.$GLOBALARR['presentcoin'].'" class="thconfig wd120"></td>
	  </tr>';

echo '<tr>
		<td class="wdb20 alignr paddingr">当日本金收益限额</td>
		<td class="alignl paddingl">
		<input type="text" name="limitmax" value="'.$GLOBALARR['limitmax'].'" class="thconfig wd100">%
		</td>
	  </tr>';

echo '<tr>
		<td class="wdb20 alignr paddingr">存储时间</td>
		<td class="alignl paddingl">
		<input type="text" name="freeze" value="'.$GLOBALARR['freeze'].'" class="thconfig wd100">天
		释放<input type="text" name="free" value="'.$GLOBALARR['free'].'" class="thconfig wd100">%
		
		</td>
	  </tr>';
echo '<tr >
		<td class="wdb20 alignr paddingr">团队日收益，推荐人锁仓数</td>
		<td class="alignl paddingl"><input type="text" name="recnum" value="'.$GLOBALARR['recnum'].'" class="thconfig wd120"></td>
	  </tr>';

echo '<tr >
		<td class="wdb20 alignr paddingr">赠送活动时间(例：2017/8/10)</td>
		<td class="alignl paddingl">

		<input type="text" name="timestart" value="'.$GLOBALARR['timestart'].'" class="thconfig wd120"> - <input type="text" name="timeend" value="'.$GLOBALARR['timeend'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">消费劵的比例</td>
		<td class="alignl paddingl"><input type="text" name="jjfhz" value="'.$GLOBALARR['jjfhz'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">渠道奖的比例</td>
		<td class="alignl paddingl"><input type="text" name="qdjbl" value="'.$GLOBALARR['qdjbl'].'" class="thconfig wd120">%</td>
	  </tr>';

//echo '	<tr>
//			<td class="wdb20 alignr paddingr">持币生息利息</td>
//			<td class="alignl paddingl">';
//		foreach($GLOBALARR['allowtxall'] as $key=>$val){
//			echo '<input type="text" name="allowtxall'.($key+1).'" value="'.$val.'" class="thconfig wd120">';
//		}
//
//echo		'%</td>
//		</tr>';

echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">每X天结算一次</td>
		<td class="alignl paddingl"><input type="text" name="perdays" value="'.$GLOBALARR['perdays'].'" class="thconfig wd120">天</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">静态动态晋级转商品积分手续费</td>
		<td class="alignl paddingl"><input type="text" name="zhelecoinbl" value="'.$GLOBALARR['zhelecoinbl'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">静态收益 X%兑换币</td>
		<td class="alignl paddingl"><input type="text" name="duib_jt" value="'.$GLOBALARR['duib_jt'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">静态收益 X%兑换共享积分</td>
		<td class="alignl paddingl"><input type="text" name="duifx_jt" value="'.$GLOBALARR['duifx_jt'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">静态收益 X%兑换发展基金</td>
		<td class="alignl paddingl"><input type="text" name="duifz_jt" value="'.$GLOBALARR['duifz_jt'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">动态收益 X%兑换币</td>
		<td class="alignl paddingl"><input type="text" name="duib_dt" value="'.$GLOBALARR['duib_dt'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">动态收益 X%兑换共享积分</td>
		<td class="alignl paddingl"><input type="text" name="duifx_dt" value="'.$GLOBALARR['duifx_dt'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">动态收益 X%兑换发展基金</td>
		<td class="alignl paddingl"><input type="text" name="duifz_dt" value="'.$GLOBALARR['duifz_dt'].'" class="thconfig wd120">%</td>
	  </tr>';

echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">本息提现最小金额</td>
		<td class="alignl paddingl"><input type="text" name="qkmin" value="'.$GLOBALARR['qkmin'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">会员每天提现最大金额</td>
		<td class="alignl paddingl"><input type="text" name="qkmax" value="'.$GLOBALARR['qkmax'].'" class="thconfig wd120"></td>
	  </tr>';

echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">提现利息最小积分</td>
		<td class="alignl paddingl"><input type="text" name="txminlx" value="'.$GLOBALARR['txminlx'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">提现(动态,晋级,消费)最小积分</td>
		<td class="alignl paddingl"><input type="text" name="txmindjx" value="'.$GLOBALARR['txmindjx'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">其他提现手续费</td>
		<td class="alignl paddingl"><input type="text" name="txkql" value="'.$GLOBALARR['txkql'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">提现手续费</td>
		<td class="alignl paddingl"><input type="text" name="txkbj" value="'.$GLOBALARR['txkbj'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">莱特币单价</td>
		<td class="alignl paddingl"><input type="text" name="ltc_price" value="'.$GLOBALARR['ltc_price'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">比特币单价</td>
		<td class="alignl paddingl"><input type="text" name="btc_price" value="'.$GLOBALARR['btc_price'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">转换手续费</td>
		<td class="alignl paddingl"><input type="text" name="zhuanhuan_rate" value="'.$GLOBALARR['zhuanhuan_rate'].'" class="thconfig wd120">%</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">一个消费劵需要多少商品积分</td>
		<td class="alignl paddingl"><input type="text" name="tran_num" value="'.$GLOBALARR['tran_num'].'" class="thconfig wd120">个</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">本息提现倍数</td>
		<td class="alignl paddingl"><input type="text" name="qkbs" value="'.$GLOBALARR['qkbs'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">提供帮助确认期限（分钟）</td>
		<td class="alignl paddingl"><input type="text" name="jjqkok" value="'.$GLOBALARR['jjqkok'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">获得帮助确认期限（分钟）</td>
		<td class="alignl paddingl"><input type="text" name="jjtx" value="'.$GLOBALARR['jjtx'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">单次提供帮助最小金额</td>
		<td class="alignl paddingl"><input type="text" name="cqmin" value="'.$GLOBALARR['cqmin'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">单次提供帮助最大金额</td>
		<td class="alignl paddingl"><input type="text" name="cqmax" value="'.$GLOBALARR['cqmax'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">提供帮助金额是此数的整数倍</td>
		<td class="alignl paddingl"><input type="text" name="cqbs" value="'.$GLOBALARR['cqbs'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">收益出局倍数</td>
		<td class="alignl paddingl"><input type="text" name="outbs" value="'.$GLOBALARR['outbs'].'" class="thconfig wd120">倍</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">提供帮助排队等待时间（分钟）</td>
		<td class="alignl paddingl"><input type="text" name="jjcunpei" value="'.$GLOBALARR['jjcunpei'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">获得帮助排队等待时间（分钟）</td>
		<td class="alignl paddingl"><input type="text" name="jjqupei" value="'.$GLOBALARR['jjqupei'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none;">
		<td class="wdb20 alignr paddingr">提供帮助完成后必须在此分钟内再挂单</td>
		<td class="alignl paddingl"><input type="text" name="jjqc" value="'.$GLOBALARR['jjqc'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">一天提供帮助挂单上限</td>
		<td class="alignl paddingl"><input type="text" name="qudelay" value="'.$GLOBALARR['qudelay'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">自动匹配开放时间段一</td>
		<td class="alignl paddingl"><input type="text" name="morningstart" value="'.$GLOBALARR['morningstart'].'" class="thconfig wd120"> - <input type="text" name="morningend" value="'.$GLOBALARR['morningend'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">自动匹配开放时间段二</td>
		<td class="alignl paddingl"><input type="text" name="noonstart" value="'.$GLOBALARR['noonstart'].'" class="thconfig wd120"> - <input type="text" name="noonend" value="'.$GLOBALARR['noonend'].'" class="thconfig wd120"></td>
	  </tr>';

echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">对换数字加密资产每日上限</td>
		<td class="alignl paddingl"><input type="text" name="duihuanlimit" value="'.$GLOBALARR['duihuanlimit'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">新管理员默认密码</td>
		<td class="alignl paddingl"><input type="text" name="syadminpwd" value="'.$GLOBALARR['syadminpwd'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">网站标题</td>
		<td class="alignl paddingl"><input type="text" name="sytitle" value="'.$GLOBALARR['sytitle'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr>
		<td class="wdb20 alignr paddingr">网站底部信息</td>
		<td class="alignl paddingl"><input type="text" name="sybottom" value="'.$GLOBALARR['sybottom'].'" class="thconfig wd400"></td>
	  </tr>';
echo '<tr style="display:none;">
		<td class="wdb20 alignr paddingr">利息出局天数</td>
		<td class="alignl paddingl"><input type="text" name="jjlxt" value="'.$GLOBALARR['jjlxt'].'" class="thconfig wd120"></td>
	  </tr>';

echo '<tr style="display:none;">
		<td class="wdb20 alignr paddingr">平台会员基数</td>
		<td class="alignl paddingl"><input type="text" name="hyjs" value="'.$GLOBALARR['hyjs'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none;">
		<td class="wdb20 alignr paddingr">平台资金池基数</td>
		<td class="alignl paddingl"><input type="text" name="zjcjs" value="'.$GLOBALARR['zjcjs'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">提供帮助完成后冻结的小时数</td>
		<td class="alignl paddingl"><input type="text" name="freezedhour" value="'.$GLOBALARR['freezedhour'].'" class="thconfig wd120"></td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">注册完成多少天之后不拍单封号</td>
		<td class="alignl paddingl"><input type="text" name="freeze_not_give" value="'.$GLOBALARR['freeze_not_give'].'" class="thconfig wd120">天</td>
	  </tr>';
echo '<tr style="display:none">
		<td class="wdb20 alignr paddingr">管理员设置账户可以提现</td>
		<td class="alignl paddingl"><input type="text" name="glyti"  style="width:400px" value="'.$GLOBALARR['glyti'].'" class="thconfig wd120">账号之间用英文逗号 ' ,' 隔开</td>
	  </tr>';
if($GLOBALARR['syopen'] == 0){
	$open = "checked='checked'";
	$close = '';
}else{
	$open = '';
	$close = "checked='checked'";
}
echo '<tr>
		<td class="wdb20 alignr paddingr">关闭网站</td>
		<td class="alignl paddingl">
			<input type="radio" name="syopen" value="0" '.$open.' />开启&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="radio" name="syopen" value="1" '.$close.' onclick="alert('."'请注意：您选择了关闭网站！'".')" />关闭
		</td>
	  </tr>';
echo '</table>';
echo '</form></div>';
?>